import requests

def send(mobile,captcha):
    url = 'http://v.juhe.cn/sms/send'
    params ={
        "mobile":mobile,
        "tpl_id":"135629",
        "tpl_value":"#code#="+captcha,
        "key":"06f0dbbb56b6771ad15248a17ba8c8d5"
    }

    response = requests.get(url,params=params)
    result = response.json()
    print(result)
    if result['error_code'] == 0:
        return True
    else:
        return False

send("13986197121","abc1")